package com.shadow.study.quartz.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 任务执行日志.
 * @version v1.0
 * @className: ScheduleJobLogEntity
 * @author: Pbody
 * @date: 2021/3/23 10:20
 */
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("DEMO_SCHEDULE_JOB_LOG")
public class ScheduleJobLogEntity extends BaseEntity {
    private static final long serialVersionUID = -543824629972849028L;

    /**
     * 任务id.
     */
    private String jobId;

    /**
     * spring bean名称.
     */
    private String beanName;

    /**
     * 方法名.
     */
    private String methodName;

    /**
     * 参数.
     */
    private String params;

    /**
     * 任务状态    0：成功    1：失败.
     */
    private Integer status;

    /**
     * 失败信息.
     */
    private String error;

    /**
     * 耗时(单位：毫秒).
     */
    private Integer times;
}
